package com.ruoyi.quartz.task;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.quartz.domain.SysJob;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.stereotype.Component;

@Component("orderCloseJob")
public class OrderCloseJob {

    @Log(title = "定时关闭订单", businessType = BusinessType.UPDATE)
    public void orderClose(String orderId) throws JobExecutionException {
        System.out.println("订单关闭任务执行了" );
        System.out.println("订单Id：" + orderId);
    }

    // 无参版本供定时任务调用
    public void orderClose() {
        System.out.println("订单关闭任务执行了");
    }
}
